const mongoose = require('mongoose')
module.exports = new mongoose.Schema({
  // 用户名  username
  // 密码 password
  // 注册时间 registe_date
  username: {
    type: String,
    required: true,
    unique: true, //值不能重复
  },
  password: {
    type: String,
    required: true,
  },
  registe_date: {
    type: Date,
    default: Date.now(), //默认值:当前时间
  },
})
